package com.hancher.gamelife2.weather;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.RawQuery;
import androidx.room.Update;
import androidx.sqlite.db.SupportSQLiteQuery;

import java.util.List;

/**
 * 描述 :  <br/>
 * 时间 : 2023/12/2 13:26 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Dao
public interface IWeatherDao {
    @Insert
    void insertItem(WeatherPO data);

    @Insert(onConflict = OnConflictStrategy.IGNORE)
    void insertList(List<WeatherPO> datas);

    @Delete
    void deleteItem(WeatherPO data);

    @Update
    void updateItem(WeatherPO data);

    @Update
    void updateList(List<WeatherPO> datas);

    @RawQuery
    List<WeatherPO> getList(SupportSQLiteQuery sql);

}
